import { App } from "vue";

export default {
    install: (app: App) => {
        const files = require.context('@/directives', true, /\.ts$/);
        files.keys().forEach(key => {
            const name = key.match(/\w+/)[0];
            if (name !== 'index') {
                files(key).default(app)
            }
        });
    }
}